db operate for mescake