Fixed bug in pg when saving records without properties