Generally in 3 tier applications one more level is added which is called as controller level.
This level serves as interface between database and user interface. From User Interface, functions will call to controller functions which in turn calls to the database layer.
But in 2 tier applications, user interface directly linked to the database.