lbdb wrapper for zmcq