Fixed filenotfound errors for settings and database