tweaking sql solo