Working implemention of parsing tsv -> .db file