Tons of error checking now... stop breaking my code with bad DB entries