Removed some unmaintained tables and files and introduced the pre_update.sql script for sql commands to be run before an update.