example of db usage - statusdata functions