better errorhandling (a bit)

returning status 8 now when database encountered an error #74