giving a alert dialog when no database