replace get_tunes by get_db_tunes and get_angle by get_db_angle