A scope on find_by_id causes postgres to fail if the table doesn't exist. For now test for this. Later remove this scope (only there for backward compatibility with previous ambry code).