Updated scripts for sqlite.