Fix for mysterious database entries without paths (corrupt db?)