sql writes done