Add new data to db, modify script to render everything from there
Remove some unnecessary code repetition