Refactored dao structure and added functionality to moviedao.