db select moved to config.php