Fixed coding style
Added dependencies check between modules on delete, activation and deactivation
moved update sql in the right file
Fixed code (code review)
added translations