Enable edit deal when curUser is the creator of a deal.
Change 'find' function to fetch data from database.

Also make changes to UI templates.