Merge branch 'composer-log'
Merge remote-tracking branch 'upstream/master'
Uses the createPreparedQuery factory method to create queries instead of instantiate them by hand.
Merge pull request #111 from Sukei/connection-query

createPreparedQuery factory method used for internal queries