Refactored file reading and finished database creation.
Merge pull request #1 from tuomasvapaavuori/file_reading

Refactored file reading and finished database creation.