Added db connection and forcing defaults on PECL