copying database.yml and application.yml locally and migrating db