starting to do math on database