C process replicate table to other database with low base load