Fixed app crashing due to no database on device