updated db repository