Added diagrams for database
Fixed bug in authentication.py