What is the difference between てある and the passive (ら)れる?


For example:

"昼ごはんは作ってある" and "昼ごはんは作られた". Don't both mean the lunch has been made?

As a second question, what would be the difference between 昼ごはんは作ってある and
昼ごはんは作ってあった?

Much appreciated




昼ごはんは作ってある => The lunch has been made.

昼ごはんは作られた => The lunch was made.

昼ごはんは作ってあった? => The lunch had been made.

