Migrate from jdbc to korma