My primary area is HW/Software interaction & Robotics, but we're running into situations where having a few database tables would be handy. I've got almost no knowledge on DBs.
What is a good primer on Database programming that would quickly get me up to speed on create/add entries/delete entries/query. Prefer either a basic Flat-file database program, or PostGreSQL in C or C++. In the case of a flat-file database, needs to be an OpenSource license, BSD style if it must be compiled-into the main executable.