functionality of saving info of selected location in db implemented