added a wrapper for mysqli