pull nach eng keier du Sau ;)

Some functions had to be changed due to session handling between the
files.

There was also a teardown_request function added for better SQL session
handling.