get full sid to database