fixes a problem where databases harvested from mysql show databases are missing the last one