Fix issue related to SQL insert statements for facilities