finish up the database object