moved seed_db to application controller and other refactors