wrapping access to d/b connection with try-exception to avoid mysql time out error
changing session to session()
debugging remove_comment
added segment.io
added segment.io analytics