database connectivity fully genericized, about to begin testing