Hi kamailio'ns

I am working on MSRP module of Kamailio serverV 4.0.3, which is installed from Ubuntu 12.04(precise) repository.
 
When i am trying to register SIP clients(Blink) to kamailio server, frequently logging following user location  related errors in syslog,
SIP clients are registering to kamailio sever successfully, but still logging these errors and client presence is not visible to other client.

Oct 25 20:09:05 kamailio /usr/sbin/kamailio[15277]: ERROR: db_mysql [km_dbase.c:122]: db_mysql_submit_query(): driver error on query: Duplicate entry 'uloc-526a7929-3bab-91' for key 'ruid_idx'
Oct 25 20:09:05 kamailio /usr/sbin/kamailio[15277]: ERROR: <core> [db_query.c:235]: db_do_insert_cmd(): error while submitting query
Oct 25 20:09:05 kamailio /usr/sbin/kamailio[15277]: ERROR: usrloc [ucontact.c:625]: db_insert_ucontact(): inserting contact in db failed
Oct 25 20:09:05 kamailio /usr/sbin/kamailio[15277]: ERROR: usrloc [urecord.c:368]: wb_timer(): updating contact in db failed (aor: 1112@kamailio.test)

Below attachment is my Kamailio config file (please suggest me if any changes to be made).

Anybody please help me in resolving the issues

PS: With the same script when i used to register the clients (jitsi) to kamailio i am logging presence related errors (which i posted too in the mailing list with the subject as : Presence issues)

Regards,
Ravi