Adapted project and customer listener; added synchronized blocks for saving customers and projects.