larger integration of status codes

status codes are picked up during startup and the sql query is confirmed
working and managed partially. the schedule task has been given a small
boolean check if a status code is active but the dynamic management
between web service and different applications still needs a solution.