you are hopeless,
first you are taking technical advice from volpunter, someone who has been exposed several times for having no clue on programming design, coding and programming pattern, so you are already fucked right there.
Take a strong RDBMS and structure properly your tables with a...