Minum is five thousand lines of code - the "minimalist" competitors range from 400,000 to 700,000 ... and which shows how a user might go about including a different database than the one built-in.