database fully functional