Now also connecting to db with PDO

Added a way to connect to the DB using PDO in addition to mysqli