ENH: Make SQL query compatible with multiple db's
ENH: Make SQL query compatible with multiple db's

scipy/SciPyCentral,scipy/SciPyCentral,ksurya/SciPyCentral,scipy/SciPyCentral,ksurya/SciPyCentral,ksurya/SciPyCentral