Feature/extract to db

@yamins81 This seems to work ok. Once you merge, I will extract the challenge set.