Reading from DB to historytab works