Set up model and database for locations