Finish SQL object