Remove middlware and proxy user and create a generic template mixin to pass the total of databases and clips