save repos into db and update scheduler