done some performance stuff for stats
create namespace for database this fix issue #24