Refactoring movienamedao.