moving things into connection
trying to get backend on base.html