more sql call changes