update database config for aws