ARCified
added method doUpdateQuery to allow updates to existing rows