Fix dbtype bug in PosgreStore