Created CardDAO instead of straight query in resource