public ArrayList<DBSong> getSongsById(ArrayList<Integer> ids){
        StringBuilder sb = new StringBuilder();
        for(Integer id : ids){
            sb.append(id).append(',');
        }
        sb.deleteCharAt(sb.lastIndexOf(","));
        
        HashMap<String, String> params = new HashMap<String, String>();
        params.put("songids", sb.toString());

        ArrayList<DBSong> songs = new ArrayList<DBSong>();
        String completeSql = DatabaseHelper.SQLBuilder(
                                            selectSongsByIdSQLTemplate, params);
        try {
            Statement stmt = dbConn.getDBConnection().createStatement();
            ResultSet result = stmt.executeQuery(completeSql);
            while(result.next()){
                songs.add(dbsongFromResultSet(result));
            }
            stmt.close();
        } catch (SQLException e) {
            System.err.println("Could not select the songs from the database.");
            e.printStackTrace();
            return songs;
        }
        return songs;
    }