removed sql delayed writer in favor of prepared statements