fixed some errors with not existing references in the database
fixed and tested some functions of the FileStorageService and the FileStorageInterface implementation more work to do!