sql queries changed for billing flows
in flows datatype changed
file column date format changed for date