add a catch to database execptions at start