updating sql to only create if not exists