Clause databases and Theories

TODO: write