buffered-sql problem