htable: relax table definition for htable and handle/accept more db types