fixing newcard post method to create Card objects in db