Application to hold locations - trying to reduce db queries
updated to use locations in application class instead of querying again