updated repo classes to the new db schema