update database.yml to DRY and postgres