LPS-32653 (Part II): get database name