getting repos from db now
edited check_repos method