Entity Manager Singleton

Converted EntityManager class into a singleton to prevent multiple
instances from occurring.