added bit of logic in drawresult utils, changed few things in
couponutils and db adapter