Fix the database error listing code
Merge pull request #6 from mpeshev/mpdberr

Fix the database error listing code. The print_error never worked as I expected.