Changed location to SQL geography, moved common methods to base controller