record sqlalchemy queries for debug toolbar