improve label table and change base dao implementations