commented acutal db call in application_controller