locations database setup