it sounds like a messy table structure
instead of a different record for each piece, use different column and one record.
that way you could output the title as:
<?php echo($rsSiteSettings->getColumnVal("title")); ?>
and the meta description tag as:
<?php echo($rsSiteSettings->getColumnVal("meta_description")); ?>
etc... no need for if statements.