Updated Rails config for databases