completely working database