settings and database