remove unused files, fix space in sql