database config

added database config file and update index.php