Added config file for database, and setup database connection in index