Set everything up for the sql dump