Greg/bad db tests