SQLite adapter: delete only if table has been used