added query_id, query_name and erase methods on database class. Polished database interface (hid odb types)