replaced std::string by char*

I replaced std::string by char* (and removed string attribute). For me this works better...

Moreover, I added checks for empty strings when parsing db and coll names (although this should never happen)