Change how @SQLScriptInit works, add checkConnection(), changes to backup methods and fix KeyValStore to work with SQLite.