Configuration module and some database work.