MySQL database access wrapper.