Added Dialog and refactoring Database. 

Repaired: Closing whole app when x clicked on add claim/add customer dialog