Handle no database selected in zebra_begin_trans