Added custom footer possibility from Python code. Handled DB connection failure. Now rendering a nicer page