Removed unneeded files, improved HTTP error messages, closed open DB han...

...dle.