(cherry picked from commit ea46ca0af5f6912d17cf7c656f00257cdee191d1)
Generic single-database configuration.