search pattern in a mysql database schema