Locations sqlite api