Updated db to postgresql