Made UserController a class.  Changed constructor in Db class to return null upon PDOException.