Fixed compile errors
Fixes in CardDAO impl