dba::selectFirst hasn't been merged yet!
Change function names, calls and use dba functions.
Move files.php and create Term class