changed to postgresql db