barebones write from sqlite script