Point database to localhost for PRODUCTION and DEVELOPMENT mode