Make sure wehave a db list before trying to chmod it