Bicr migration sql