Add postgresql database test coverage

Change-Id: Ic092e65d975aef8c092f26d3343ff586356c77f2
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>