Very early work for a db entry function ...