Commit database transactions after finishing a celery task