smart sql builder for python