Added a last_insert_id() method to dbobject