Changed to local_settings and using postgres