fix detect adapter by database.yml