Attempt at fixing db connection issue