more code for the database