Simple in-memory key-value database with transactional blocks