commit with working daing database writing