add database and navigation bar