Used SimpleDBI methods in model/thread.php and model/user.php