created database adapter for PRs