add db_count_mem
add some timer intervels macro define
finished the server things