buffered_sql problem