database working first draft