store status in database - closes #8