Get active gpios from database for realtime data output