You're welcome CrazyIvan.
The database problem looks like broken referencing to the array of entities.
I cannot understand where the invalid index comes from, sadly.
But it seems to occur inside a loop running until a counter reaches db->profileArr[i].unk0c...
Maybe this is an hint for you.
@Phantom: Yes, I'm Italian.