strip db-related code in viewhelper