[sql] implement the sqlite3 .schema command