Added settings tables to database creation script.
Added version table cleanup to database updater.