Added PostgreSQL dependency and implemented DbCache.