Created a header file

Containing data structures and included it in db.c