Fix empty profile and database modification crash (Forum)