Adding decorators which handle automatically closing db connection,
fixes #44
Documenting new API and adding error handling.