link.dbrequests is a database agnostic query system.
Check out the source code on Github.
pip install link.dbrequests