C + + mysql database interface