added sql parameter and schema as own type