Use created by field for own devices/platform search
This MR fixes the way the "own devices/platforms" search is handled.
Now it will use the created_by_id
field in the device / platform table.
I also adjusted the email search - so in case that this is a thing for the future, we can reuse it.