Add postgresql compatibility

Remove redundant sql query sections
Bump version number


Change-Id: I1e03b1b9a27b7062e3ffcf43524494fd6382b8ea
Signed-off-by: Mike Kelly <m.f.kelly@arts.ac.uk>