add database and the improve the show page