Changed admin and results pages to work with MySQL