Update database config to use current environment