checking how to retrieve automatically the column name from mysql