Fixed tests and mysql DAO impls