database working program