Several fixes for charts and hoard -dbfile creation/updates.