changes to postgresql db