Revert "sql updates"

This reverts commit 2dce42e4073f5391096fc1b998febfc6968dd3de.