Creating the database