Update BaseDatabase.php

Do not save compressed files in the source dir of files to compress