adapt to postgresql (migration updates on wip limit) and fix one nil error