.......... [ZBXNEXT-686] minor improvements for the database clearing method