added dbnames refresh on auth failure

added dbnames refresh on auth failure.
DB authentication will take place only if both dbnames and db grants
are loaded