add increment query to libmysql