updated db to postgresql