add db operate

simple db operate and test