simplified sql parsing for the first prototype