Restore updating access for users table, upgrade dependencies, add comments in Database class