Fixes for Issue #1 and Issue #6

This PR fixes issues https://github.com/MarkLeith/mysql-sys/issues/1 and https://github.com/MarkLeith/mysql-sys/issues/6