unify pointers when reading db too