Orm\Query fixed connection issue.

min, max and count methods was using only default connection.

Signed-off-by: Kristián Feldsam <feldsam@gmail.com>