added math for sizes
updated database