added feature to return compiled sqlalchemy query string without executing