Dump data to sql database