Changed returned values and parameters of database to use std::string instead of char*.
Removed cstdint usage.