Updated plugin versions
Made all id's use sequences; Replaced wildcard imports with specifics;
Formally named unique and foreign keys.