alert danger if database error
nav changes