working without manual conversion to dbobj