New sqlite _optimize script

Use VACUUM and REINDEX sqlite_optimize script,thanks to blaz1nr@XDA