changed db to postgresql