chaining sql calls.