model and database for places