sqlite: check item type