Updated documentation
Do not make database queries if connection fails

Resolves issue #14