add thread db migrations