Modulegraph

Fix sqlalchemy hook
Move hooks to new format