Add affected_rows property to Database object