My pal one Apache mod for sql-connections. But I'm not sure title of the mod (my pal keeps it secretly). I had been in the search engines, however i can't found any information on it.

Within this mod you are able to connect with database like this:

$db = new db_mod("mysql");
$db->query(....);

Are you able to assist me to?

PDO? Even when that isn't it, that's what you need to be utilising...

Also it will not be an 'Apache' mod, it will likely be a PHP class/extension. Apache is really a web server and never really for coping with such things as database connections.