reconfigure database.yml and subquery in models
delete ~file