local database using phonegap and jquery