Reads and writes to the database but there are a couple issues with it

for one the test will make duplicates after the first test, can't make a conditional because having issues accessing the database from different areas in the code.