added error reporting to db