storages: refactoring configs
storages\DBStorage::count*-methods