update database table and .hbm files