active represents a bool value for whether we want the link to show
resolved all threads
Is there a need to have a separate active column? If it's in the database, it should implicitly be shown. We can just remove it from the database if we want to hide it.
On the other hand, it does provide us functionality to just hide certain links. What do you think @n3parikh?
DB_PATH = os.path.join(os.path.dirname(__file__), 'links.db')
con = sqlite3.connect(DB_PATH)
If I call the script from the repo's root directory, links.db is created in the repo's root directory (i.e. near the frontend and backend folders). But if I call it from the backend folder, it creates a links.db in the backend folder (i.e. /backend/links.db)
The suggestion above makes sure that links.db is always created inside the backend folder.