implemented TODOs for Contact and Application, and added new class ContactDatabase