Fix database.yml substitution