[sprint 31] sql with register fields