save commit & pull request in the database