Fixes dbconfig writing