Use MySQLI functions instead of deprecated MySQL. Closes #9, thanks to @castiel