table added th params array
fast init cleanup, now require php 5.3+
db fixes