man... you ever heard of css? i wreckon you could cut that 55k file down to about 10.
as for your problem.... your going to need to explain yourself a little better.
your talking about searching the db in one sentence... then adding records in the next. which is it?