Added Independent image database

Added function to reference two databases
1. Config database
2. Image database
This will allow better load balancing opportunities.