Setting up templates, logins, db stuff