Problem with huge db tables