catched the PDO exception on connection to prevent leaking of database credentials