Collect SQL args, store them in db

I hope the alembic script works for you.