Replace old MySQL API calls with PDO_MySQL

This pull request solves issue #86 by removing mysql_xxx function calls and replacing them with the PHP Database Objects (PDO) API.

Note: PDO requires at least PHP 5.1, so pulling these commits raises the minimum required PHP version for Frogsystem 2 from PHP 5.0 to PHP 5.1.