Fetches posts from the sqlite3 db and displays them on main.html