bug fixed in rb_lib, reagardin cleaning query at the time of fetching record from model