a new ripository with database