Added csrf, mongo connection, and the routes