just hacked together generation for concrete database