working with sql commands separated