Adds the db relation changed and departed hooks for mysql. (Rebase from jaycee PR)

Conflicts:
	hooks/config-changed
	hooks/start
fixed utils placement from merge
Fixed utils placement from merge