this is a fast example of a struct's based DB in C (ansi?)