Fixing database scripts.