queuePull modified to make queue changes more atomic, this removed
few ugly failures in tests as well
possible to use connection object or connection string
new tests and modifications for insert, update and upsert

upsert and paginate are not working properly now due to their design