try to update db query using CI style

update db query using CI style