MySQL C API, some C learnings