changed database to have the possibility for file-, group- and userlists as fields. also fixed a few constraints for foreign keys.