Fixed all conditions. Added database saving. Nearly finished! Need: MySQL support, fixing CSS (table positioning), config.txt configuration (counterbalancing, trial allocation etc.)...