Used MySQLi instead of Mysql_ which has been deprecated