Updates to sqliteSGP