Added dependency between the two tables, applications belong to a customer
Finished the logic to handle applications