Adding DB config hook