HomeSoftware Heritage

Set current_version attribute to postgresql datastore

Description

Set current_version attribute to postgresql datastore

This also simplifies the db collaborator code reusing core.db functions to check the
code version and the actual db version matches.

Related to T4305