implemented v1 of the database.