changing mechanics in database (hooktorepo changed to repohooks
not working but good idea about hooks