Switch db to postgresql