update config.dist.php; fix db