fix bug for db configuration