fixed a bug where GPS was saved in db