Added an ability to save current location and read locations from db