data service get bills sql bug fix