Making the database