Fixed issue with dbAffectedRows