handle bad database files better and notify user

Signed-off-by: Thomas Stilwell <stilwellt@openlabs.co>