global doctrine configuration and repository factory