Separate SQL actions by class