UI fixes for databases page and documents page