fix database and re-gen entities

test old feature ok