Expanded field.type information

Added a call to sqlite_master to grab the full CREATE statement when altering tables such that REFERENCEs, CASCADEs, and the like are kept intact.