fix a lot of bug for text, change de db dao