Fix issue handling 0 which is a valid row ID

Only -1 indicates a problem according to http://d.android.com/reference/android/database/sqlite/SQLiteDatabase.html#insert(java.lang.String,%20java.lang.String,%20android.content.ContentValues)