patch for database