Table name prefix support added to missed query, doc block added to new function