Tracking errors while setting local variables
added authorization checking
Null responce from postgres is handled.
Merge remote-tracking branch 'origin/master' into issue#39

Conflicts:
	source/server/database.d