REPLACE SQL statement should obviate need for arrayshifting and allow replacement. Hooray
Turns out if you NULL the primary key set to autoincrement, it'll autoincrement. Handy.
Fixed a typo in the schema.
Added fkey dropdowns for fkey fields.

Note that this assumes that your primary key is the first field in the
schema arrays, and that all fkey fields end in "ID". It's... Not
perfect, but it works...