Added an untested function to build the database.