added card table to database