added exception db connection