refactor controller and models to check if song exists and return id