Added SQL statement and proper functional dependency checking for actors/directorsInMovies relations