fixing calculation of count of db exports