Overly simple db generation -- takes much too long with much not being stored