Saving travel details using $cordovaSQLite.