I would liek to help, but give mre information...
what type of database? do you mean it is it on a server or in XML files? ...