Fixes issue #346.

In smart manager sink, django orm is used to write to sqlite3 in
autocommit(default) which causes database locking issues when there's a
constant stream of updates in the sink. Use commit_on_success and batch writes
to mitigate this issue.