Database interaction added

The reading page now fetches submissions from the database as long as
they are set to be visible. DB file to follow.