rename cid
add index to return of insert_uuid method
rename client_uuid to uuid_idx
rework insert_uuid_if_needed and find_client_uuid to share db cursors
Add insert_frames() to db_manager