sql code file for transforming db