solved postgres error