small integration of status codes

a breif checkin regarding status management. added a simple sql query to
select the active status in the database. begun adding logic for sending
status codes from the web service and much much more on the todo list
before its finished.