Correct querying of related table data.
Move some code and fix a recently introduced bug.
Correctly check array key in Row.
Support for bulk update.
Log delete queries and fix a bug when deleting from a table which has relations.
Improve logging.