fix logging wrong body
sql test fixtures, fix cross db foreign key