Make `deleteHabit(_:)` thread-safe
Make `deleteHabit(_:)` thread-safe

Pass primary key of the habit to be deleted into the method, instead of the habit itself. If the primary key doesn't exist in the database, return failure. After successfully deleting the habit, return the current habit count as index path.

juliangrosshauser/Habits