databases.py should be functional, documentation needs some work, and it is technically unsafe