Function for setting the enabled flag of an environment in the database
Added/Modified some helper functions in Environment class. Also started working on finding out the connected Bluetooth devices when the app starts.