refactoring
refactoring add contact method into database class
all methods working