Fixed some bugs in view project and ProjectsDB