-Corrected database viewer for cases where it is empty;