Added case database and relevant functions.