replaced database name and resource name