impl db repository