Separate wpdb usage into driver class