switch to postgresql db