A few improvements -- usability & postgresql

** See the comments om commits