working on postgresql transition