Handle db error, only read schema if table exists