Fix initial REST check
Compartmentalize functions to prepare for backround threading.
Add commits and connections to database
Processes that are not "RUNNING" are highlighted in red.