database design changed, also code changed according to new design