refactoring jooq repo migration