There are all kinds of find algorithms and std::string has member functions to do similar things. It really depends on what your database consists of. Even if you are using c-arrays you can still use std algorithms to find substrings or objects with particular properties.