Put PDO connection in try.catch block