documented database and config strcuture