This moves the database to using FK constraints and includes the fixes for importing new vhosts and deleting removed vhosts