simplify baseURL a little bit
add BaseDAO
fixing bugs and removing unused code