Adjusted when colour database is accessed and how.
Added threading to getting similar colours to not lock UI