created model and made the view connect with database to fetch users