database schema and config