[derby] refactored `quote` into some "real" Ruby since it's hard to follow
all should now be working the same with/without prepared statements ...
re-build jar (due Derby updates - using 1.6.8)