OO mysql for config