Cleanup database after del user

After a user was deleted the db entries for the trash bin and the files versioning app should be removed too.

fixes #2865