Bugfix: Change !is_resource() to is_string in abstract DBAPI class so that both mysql and mysqli work correctly