Made site show error if db is empty