Database access for anaysis

@dominik, please refer to the forum post on the TheoryTab API