Updated the sql tables