Fix db and config requires