More updates to the schema.

Added functions to cast SQL types to Python types automatically.