[fix] GPIO updates to db more consistent to different backends