generate cards backbone index view, cards api for db