Check database before trying to register songs (bugfix)