quick fix if table in database does not exist and recreate=true the code does not crash