Added paygate SQL