Backend: add missing use statement + change includes in templates