Centralise PDO instantiation and add config files