WIP: merged in new records interface

Contains incomplete schema changes!
Fix array SQLType, which isn't really an Array at all