Php Parse Sql Query Commands List