Commit the db session at the start of celery tasks