tweaked Input classes, moved DB_TBLPREFIX code, ...

and other minor stuff