Replaces local DB name with AUTH_DATABASE constant.