fix add entry test for postgresql