Fix: Config setting for 'cache templates' works properly now. #cl
Smarter checking if tables exist. ~30% speedup for single record pages..