Added db to contact, Database class & management