switches to postgresql; deletes old db