Minor formatting issues. Exits when db connection fails