Added connection to database for settings