little fixes
wrapping wpdb
fix typo