Initialize the database