Retrieve the repo object from the database to access its identifier

Relates to #43