minimized database class