Comment to some questions about tables :)
Ok Baloo may be I was sleepless and I didnt see the bx_get_logged_profile_id () function in profiles.inc.php :)
These functions are very useful indeed.
Now it fixed the problem.
Thanks alot for your intention to help :)