Modified aid... Dropped the earlier logic. Now, aid is Auto increment field in Database