finally got geolocation functions to work, just have to implement into database