moved database configure to global configure