preload contacts only once
Use outError for error reporting in SQL
Log api errors