Generates and populates db if not exists
Updated links
Adding Auth checks

Probably a better way to do this though
Updating links all over the place