I would add ```#include "soci/soci-platform.h"``` to provide snprintf