SQLite isTable and numRows functions