added try catch for database errors during setup