switch database to postgresql