CodeCompletionWidget class documentation done.

Added code completion to view, rule and function editing forms.

Minor fixes on object find method on DatabaseModel class.