[WIP] Save packages in the database instead of json files