Added sql code not to get errors on first run.

Added "IF EXISTS" to drop view/functions.
Show operator status in membership list

Fix membership edition if contact is not a direct member yet, but only
though inheritance.
Merge branch 'master' of https://github.com/nirgal/ngw