a codeIgniter activerecord style python mysql query builder