initializes the database