Changed database connection name, may cause conflicts with other scripts otherwise
Final version (ran without problems)