Made use of environment variables, changed database class to auto-detect the sitegroup.