Language DAO class and some bugfixes