setting up the models and the database for places