fix: Persist completed activity records
The DomainAPI was removing stopped activity records without
saving them to the database.
Now, the DomainAPI persists completed records as expected :D
What's more, it also follows the settings for minimum durations
for activity records.