Handle storpro in dbquery()