backup multi query works from function