working version; add sql dump