I've found out that once a survey is activated, a table is created whose syntax is lime_survey_surveyid.
One issue I'm facing is that the IP address field length is assigned only 5 characters, i.e. varchar(5). This is resulting in partial IP address being stored. I've been searching for the code where the field length is defined for the IP address column.
So far I've looked through activate_functions.php, common_functions.php, ado-db-datadict.inc.php, and database.php files. I haven't been able to spot it anywhere although I think I'm looking in the right files. Maybe I'm missing something somewhere. Any help in the right direction is greatly appreciated.