Fix some database query errors and put db data into config file.
Switch tools to REST API.
Switch fronted SignalLight to REST-API.