Add Doctrine to Persist Objects
Add doctrine lib and configurations.
Classes were changed to use Doctrine.