replaced every insert with insertOrThrow