Beginning sql changes