Simplification of the with-db macro

I am not sure if there was a specific reason to implement it by changing the default connection but this way seems cleaner. I also believe the previous way is prone to errors in a concurrent environment.