patch for no db access