I assume you know how to retrieve the lyrics from the database.
All you'd have to do, is make a link to.. "download.php?id=1234" or something similar, and in that script, retrieve the lyrics from the DB into a variable ($data in my code) and have these headers:
header ('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header ('Content-Type: application/octet-stream');
header ('Content-Length: ' . filesize($data));
header ('Content-Disposition: attachment; filename="lyrics.txt"');
echo $data;
That's it! Those headers will force the user's browser to actually download the page instead of just displaying it.
EDIT: By the way, welcome to PHPBuilder! Enjoy your stay, and come back soon 😃