bak db class