switch db to postgresql