Hotfix write to db.