Addressed review comments, added tests and reworked a bit. Added support for blob and fixed support for datetime