Implemented factory design pattern

Added DB Cache Engine implementation in the cache engine factory