made the location of gps work well to insert in db