from http://www.vogella.com/articles/AndroidSQLite/article.html