Throw error when Database Connection Error occures