Fix #4252 Database-level permission bug for db names containing underscores

Bug fix for https://sourceforge.net/p/phpmyadmin/bugs/4252/

Escape "_" in query.