implement the remainder of the database methods