Simplify db_types.h and hopefully make it work under Windows, Mac, Linux, and AVR.