unifying database access tables on api key page and windows authentication page