APISpark - Script for database update