Close result sets
Clean up ddl, use STRING instead of varchar and SMALLINT instead of int