Remove all sql writing code and references to lamina.