Added card DB middleware using mock data.