http://coenraets.org/blog/2011/10/sample-app-using-the-phonegap-database-api/