Rewrited getting single check/multiple checks from datebase