To avoid persistent connections to DB, try to replace
in inc/classes/BxDolDb.php
$this->link = @mysql_pconnect($full_host, $this->user, $this->password);
with
$this->link = @mysql_connect($full_host, $this->user, $this->password);
When optimizing your DB, maybe try some requests to delete datas regarding deleted members activities, like:
DELETE FROM `bx_spy_friends_data` WHERE `bx_spy_friends_data`.`sender_id` = 0;
DELETE FROM `bx_wall_events` WHERE `bx_wall_events`.`owner_id` = 0;
etc...
Life is a fatal disease, sexually transmissible - Virginity is carcinogenic! Ask here for vaccine.