cosmos to sqlite

ermegerd fix that ordering please