run queries method in db connection