changed name of table and id column
added model for history
added object id to table