adding database to repository