fix build package error and fix postgres client