updated setup sql