Fixed timing out on second request, database connection was closing prematurely and not allowing data loading