Compact database