refactor some class and select films from database (test)