fixed repo with code that works with prod database on Davids computer