SQL integration (first step)