Adding postgresql support