Changed to using PDO and created config file for DB settings