Fix patch for db credentials