Simplify sequence, view schema quoting and fix key columns

Quick fixes for a few uncovered cases.