Timer and navBar now work if database is empty