setup database configuation.