database and config