Statistical and scientific database management