Running query test on a new connection
Running query test on a new connection

Previsouly the code was disconnecting current connection
to test the query and the connecting back on database.
This was causing some flaws on the objects lifecicle since
rails expects transactions to be active during operations.
The new approach does not disconnect from rails default
connection.

refs #182

gems-uff/sapos,tiagoamaro/sapos,tiagoamaro/sapos,gems-uff/sapos,gems-uff/sapos,tiagoamaro/sapos