ValidationQuery for Derby is fixed

ValidationQuery for Derby seems to be wrong. When we try to start
the app with Derby, it was giving SqlExceptions. After we changed
the ValidationQuery to correct version, it successfully passed.
Please check http://bit.ly/1d5rTxm as reference of the fix.