added functions to get repos commits, and redid other functions to go faster and longer; refactor the db storage code to call on api functions in other module