fix filename saved to database to not contain the cache base path