implemented queries in home controller
fixed conflicts
shifted query in home controller to models