added better oplog detection
added transforming support
added tests for common db operations