LPS-50839 use dbname instead of the name