add try catch around loading db: