Change var_dumps to exceptions
Use the correct property for connection object
Rewrite query for numRows function for SELECT queries
Fix handling of empty defaults in schema