added model and view files

now user can view data from database