Is there any way to sync you iPhone and Apple Watch to my walking app

is there a way to add data from health app on iPhones and Apple watches to my watch app

I think you might have to user an external database

How do i do that

I just message you