What you need to do before you buy an existing business