Billgen added and added new param to dbquery