Added hidden database authentication function