Cleanup space
More space cleanup
Spaces
Use resources instead of SQL constructor
Dispatch on SQL subclasses
Use resources
Refactor sql
Bit of cleanup
Move raw to utils
Use resource instead of SQL constructor