Added a method for set user interface.
Added a method for get data form db.