Updating model stuff for changes of Site to Settings.
Make DB connection non-persistent to avoid MySQL server has gone away errors.