Database connection fix

Noticed your line that set the DSN to be used with PDO wasn't using settings from config.json. This fixes that.

Great work on the project so far :)