esql_model: Implemented a query execution for table creation.

Note that the whole code is still untested and is yet to be validated.