migrate to postgresql, fix versions