New function for running DB queries against the open cart database