WIP database flush