Mysql meta data related queries