Feature/extract to db