Example of how the database could be used in python