Phonegap Crud