Extract column_sql method.
Use temp sql var to improve return val readability
Fixes predicate bug.

Predicates is an array containing a hash, not just a hash.
Implements insert functionality at a basic level.
Add implicit string conversion for Entity.