Optimize the VCS extra API

Move the load from python to the database.