seperated into initTseries.r and createMetaDb.r
breaking up