adjuested things in controller and migrated the db #179