Cleanup code of data access and cache. Add validation for movie add/edit