Switch database to postgresql