Fixed sql and == methods

Found proper information on equality, and how it is done in Ruby (as opposed to the Java definitions)

Signed-off-by: Ippoippo <ippoippo-software@ippoippo-eco.com>