Added locations table and query methods.