renamed database to repository