now retrieves calc from Db using ajax function after page loads