Fix hooks
Remove mysql_context