added sending trips to server, refactoring of saving/updating trips in database