Unable to add database for user (Error: localhost not exist)

Traced problem to v-add-database which uses is_object_valid() using HOST instead of DBHOST