Avoid out of memory bug in php 5.2 and 5.3 / 	bug #129: Check correct execution status instead of affected rows,

also on update we are storing affected rows count in $db->count same way as get()