example of taking model object from DB and sending to client